<%@ page language="java" import="java.util.*, java.text.*,com.zjut.zs.util.tools.*,com.zjut.an.util.tools.*,com.zjut.an.util.system.*,
com.zjut.zs.user.manager.*, com.zjut.zs.user.dao.*,com.zjut.zs.userstatus.manager.*, com.zjut.zs.userstatus.dao.*,
com.zjut.zs.userinfo.manager.*, com.zjut.zs.userinfo.dao.*,com.zjut.zs.file.manager.*, com.zjut.zs.file.dao.*,
com.zjut.zs.cj.manager.*, com.zjut.zs.cj.dao.*,com.zjut.zs.xy.manager.*, com.zjut.zs.xy.dao.*,
com.zjut.zs.zxlb.manager.*, com.zjut.zs.zxlb.dao.*,com.zjut.zs.shhd.manager.*, com.zjut.zs.shhd.dao.*,
com.zjut.zs.exvalue.manager.*, com.zjut.zs.exvalue.dao.*,com.zjut.zs.coname.manager.*, 
com.zjut.zs.school.manager.*, com.zjut.zs.school.dao.*,com.zjut.zs.applyview.dao.*,com.zjut.zs.applyview.manager.*,
com.zjut.an.config.manager.*, com.zjut.an.config.dao.*,com.zjut.an.news.manager.*, com.zjut.an.news.dao.*" pageEncoding="utf-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../plugins/assets/plugins/jquery-3.5.1.min.js"></script>
<link href="../apply/css/iconfont/iconfont.css" rel="stylesheet" type="text/css" id="cssfile"/>
<link href="../apply/css/iconfont/demo.css" rel="stylesheet" type="text/css" id="cssfile"/>
</head>
<script src="../jsp/counter.jsp?neId=0&count=true"></script>
<%

AnConfigManager anconfig = (AnConfigManager) SpringContextUtil.getBean("AnConfigManager");
AnNewsManager nmanager = (AnNewsManager) SpringContextUtil.getBean("AnNewsManager");
HTMLCreat html = (HTMLCreat) SpringContextUtil.getBean("HTMLCreat");

 %>
<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    </ul>
    </div>
    
    <div class="mainindex">
    
    
    <div class="welinfo">
    <span><img src="images/sun.png" alt="天气" /></span>
    <b>你好，欢迎使用<%=anconfig.getSingleConfigInfoByName("网站名称") %></b>
    <a href="zs_status.jsp">点击此处报名</a>
    </div>
    <div class="xline"></div>
    
    <div class="uimakerinfo"><b>最新公告</b></div>
    
    <ul class="umlist">
    <%
    AnNews news = new AnNews();
    news.setIsrecommend(Status.ISRECOMMEND_YES.getStatus());
    List list = nmanager.getDataByInstance(1,10,null,null,news).getObjects();
    for (int i=0; i<list.size(); i++) {
    	news = (AnNews)list.get(i);
     %>
    <li><a href="<%=html.newslink(news) %>" ><%=news.getTitle() %><span><%=news.getAdddate().toString().substring(0,10) %></span></a></li>
    <%} %>
    </ul>
    
    
    </div>
    
    

</body>

</html>
